package cn.wolfcode.shop.cloud.feign;

import cn.wolfcode.shop.cloud.common.Result;
import cn.wolfcode.shop.cloud.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserControllerFrignClient implements UserInfoFeignApi{
    @Autowired
    private IUserService userService;

    @Override
    public Result<Boolean> refreshRedisToken(String token) {
        Boolean aBoolean = userService.refreshRedisToken(token);
        return Result.success(aBoolean);
    }
}
